<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>用户组管理</title>
    <%@ include file="../au_inc.jsp" %>
    
	<script type="text/javascript">
	//所有的子窗体都需要有一个save函数，当点击弹出窗体的保存按钮时所进行的操作
	function btnSave_click()
	{
	    var fun_ret = false;
	
	   var vals =$('#formModule').serialize();
	   var url = '${baseUrl }/admin/groups/save';
	   var valid = $('#formModule').form('validate');
	   if(valid){
		   $.ajax({
		       async: false, 
		       type: "POST", 
		       url : url,
		       data:vals,
		       cache:false,
		       dataType : 'json', 
		       success : function(data) { 
		           if(data.success!=0)
		           {
		               top.Ext.Msg.alert("提示",data.msg);
		           }
		           else
		           {
		               fun_ret = true;
		           }
		       } 
		   });
	   }
	   return fun_ret;
	}
	</script>
  </head>
  <body>
		<div style="padding:0px">
	    <form id="formModule" method="post">
            <input id="id" type="hidden" name="groups.id" value="${groups.id }">
            <table cellpadding="4" border="0">
                <tr>
                    <td>组名称:</td>
                    <td><input id="groupName" class="easyui-validatebox textbox" type="text" name="groups.group_name" data-options="required:true" value="${groups.group_name }"></input></td>
                </tr>
                <tr>
                    <td>组状态:</td>
                    <td><select id="status" name="groups.status">
                            <option value="9" <c:if test="${groups.status==9}">selected</c:if>>启用</option>
                            <option value="0" <c:if test="${groups.status==0}">selected</c:if>>禁用</option>
                        </select></td>
                </tr>
                <tr>
                    <td>组说明:</td>
                    <td><textarea id="desction" rows="2" cols="21" name="groups.desction">${groups.desction }</textarea></td>
                </tr>
            </table>
	    </form>
	    </div>
  </body>
</html>
